package com.xinzhidi.web.custommodel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;


/**
 * 批量绑定模型dto
 *
 * @author cx
 * @date 2023-06-15
 */
@ApiModel(value = "批量绑定模型dto")
@Data
@EqualsAndHashCode(callSuper = false)
public class CustomModelBatchAddDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "业务类型 0：小区 1：楼栋  2：单元 3：住户")
    @NotBlank(message = "业务类型不能为空")
    private String type;

    @ApiModelProperty(value = "业务id集合")
    @NotEmpty(message = "业务id集合不能为空")
    private List<Long> ids;

    @ApiModelProperty(value = "模型id集合")
    private String modelIds;

    @ApiModelProperty(value = "表名称：后台设置，前端不传")
    private String tableName;

    @ApiModelProperty(value = "模型类型")
    private String modelType;

}
